package com.demo.function.thread.jdk;

import lombok.extern.slf4j.Slf4j;

/**
 * {@link ThreadPoolQueue}使用这个类
 * @author K
 */
@Slf4j
public class ScheduleRunnable implements Runnable {

    private final int i;

    public ScheduleRunnable(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        try {
            log.info(Thread.currentThread().getName() + ", i = " + i);
        } catch (Exception e) {
            log.error("", e);
        }
    }
}
